//
//  NgrokConfig.hpp
//  Gngrok_mac
//
//  Created by heqian on 2019/4/7.
//  Copyright © 2019 heqian. All rights reserved.
//

#ifndef NgrokConfig_hpp
#define NgrokConfig_hpp

#include <stdio.h>
#include <string>


class NgrokConfig {
private:
    std::string serverAddress;
    std::string rootCerts;
    std::string userName;
    std::string passWord;

    std::string httpSubdomain;
    std::string httpAdd;
    std::string httpPort;

    std::string httpsSubdomain;
    std::string httpsAdd;
    std::string httpsPort;

    std::string tcpSubdomain;
    std::string tcpAdd;
    std::string tcpPort;

public:
    NgrokConfig();

    void read(std::string path);

    void save(std::string path);

    void setUserName(std::string name);

    std::string getUserName();

    void setPassWord(std::string pass);

    std::string getPassWord();

    void setHttpAdd(std::string httpAdd);

    std::string getHttpAdd();

    void setHttpPort(std::string httpPort);

    std::string getHttpPort();

    void setHttpsAdd(std::string httpsAdd);

    std::string getHttpsAdd();

    void setHttpsPort(std::string httpsPort);

    std::string getHttpsPort();

    void setTcpAdd(std::string tcpAdd);

    std::string getTcpAdd();

    void setTcpPort(std::string tcpPort);

    std::string getTcpPort();

};

#endif /* NgrokConfig_hpp */
